find minimum in rotated sorted array c